/*
 * @Description: IBE信息化平台
 * @Author: IBE
 * @Date: 2020-06-04 10:40:32
 * @LastEditTime: 2020-07-01 10:02:16
 * @LastEditors: yang
 */
import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_HRM
/**
 * 详情
 * @param {*} data
 */
export function hrmRecruitPostQueryByIdAPI(id) {
	return request({
		url: BASE_URL + `hrmRecruitPost/queryById/${id}`,
		method: "post"
	})
}

/**
 * 查询所有职位列表(表单使用)
 * @param {*} data
 */
export function hrmRecruitPostQuerAllListAPI() {
	return request({
		url: BASE_URL + "hrmRecruitPost/queryAllRecruitPostList",
		method: "post"
	})
}

/**
 * 数量
 * @param {*} data
 */
export function hrmRecruitPostQueryNumAPI(id) {
	return request({
		url: BASE_URL + "hrmRecruitPost/queryPostStatusNum",
		method: "post"
	})
}

/**
 * 列表
 * @param {*} data
 */
export function hrmRecruitPostQueryListAPI(data) {
	return request({
		url: BASE_URL + "hrmRecruitPost/queryRecruitPostPageList",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 添加
 * @param {*} data
 */
export function hrmRecruitPostAddAPI(data) {
	return request({
		url: BASE_URL + "hrmRecruitPost/addRecruitPost",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 修改
 * @param {*} data
 */
export function hrmRecruitPostSetAPI(data) {
	return request({
		url: BASE_URL + "hrmRecruitPost/setRecruitPost",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 状态
 * @param {*} data
 */
export function hrmRecruitPostUpdateStatusAPI(data) {
	return request({
		url: BASE_URL + "hrmRecruitPost/updateRecruitPostStatus",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 查询职位类型
 * @param {*} data
 */
export function hrmRecruitPostTypeQueryAPI() {
	return request({
		url: BASE_URL + "hrmRecruitPostType/queryPostType",
		method: "post"
	})
}
